<?php

#
# BRAD SUCKS DIGITAL DOWNLOAD STORE CONFIGURATION
#

# Where your store is located.
# Please remember to add a backslash '/' to the end of WEB_ROOT.
define("APPLICATION_ROOT", dirname(__FILE__));
define("WEB_ROOT", "http://www.yourhost.com/bsdds/");

# What your store is called.
define("BSDDS_STORENAME", "Your Digital Download Store");

# Your email (for transaction reports.)
define("BSDDS_ADMIN_EMAIL", "your@adminemail.com");

# Your email for support requests.
define("BSDDS_SUPPORT_EMAIL", "support@adminemail.com");

# Your administration password.
define("BSDDS_ADMIN_PASSWORD", "admin");
define("BSDDS_ADMIN_PASSWORD_HASHED", sha1(BSDDS_ADMIN_PASSWORD));

# Message to display after purchase completion.
define("BSDDS_COMPLETED_MESSAGE", "Your purchase has been completed successfully.");

# Where to send the buyer after the purchase.
define("BSDDS_COMPLETED_URL", "http://www.yoursite.com/bsdds/completed/");

# Where to send the buyer if the purchase was cancelled.
define("BSDDS_CANCEL_URL", "http://www.yoursite.com/abandon.htm");

# Message to display after a download link has expired.
define("BSDDS_LINK_EXPIRED_MESSAGE", "<p>This file is no longer available for download from this address.</p>" .
                                     "<p>If you have not been able to download this file successfully," .
                                     'please contact our <a href="mailto:' . BSDDS_SUPPORT_EMAIL .
                                     '">support mail box</a>.</p>');

# How long download links should last for in seconds (86400 = 24 hours.)
define("BSDDS_LINK_EXPIRY", "86400");

# What cart system to use. Use either "BSDDS" or "PayPal" (deprecated).
define("BSDDS_CART", "BSDDS");

# Currency to use in the cart.
define("BSDDS_CURRENCY", "USD");

# Do we accept Amazon payments?
define("BSDDS_AMAZON_PAYMENTS", TRUE);

# Do we accept PayPal payments?
define("BSDDS_PAYPAL_PAYMENTS", TRUE);

# Whether to use Play Tagger with catalog listings. (Experimental.)
define("BSDDS_PLAYTAGGER", FALSE);

# Whether to use the WordPress integration feature. (Experimental.)
define("BSDDS_WORDPRESS_INTEGRATION", FALSE);

#
# AMAZON AWS CONFIGURATION.
#
# For accepting Amazon payments.

# AWS key ID.
define("AMAZON_KEYID", "");

# AWS secret key.
define("AMAZON_SECRETKEY", "");

# The Amazon payments URL. (Use https://authorize.payments-sandbox.amazon.com for testing)
define("AMAZON_PAYMENTS_URL", "https://authorize.payments.amazon.com");

#
# AMAZON S3 CONFIGURATION.
# 
# For download delivery.
# You need an Amazon S3 account: http://www.amazon.com/gp/browse.html?node=16427261

# S3 bucket name.
define("AMAZON_BUCKETNAME", "/bsdds-bucket");

# S3 URL.
define("AMAZON_S3_URL", "http://s3.amazonaws.com");

#
# PAYPAL CONFIGURATION.
#
# You need a PayPal account. http://www.paypal.com/

# Your PayPal account email (or sandbox business account email.)
define("PAYPAL_EMAIL", "your@paypalemail.com");

# Whether to hold E-Checks.
define("PAYPAL_HOLD_ECHECKS", FALSE);

# PayPal base URL. (Use "www.sandbox.paypal.com" if you're using the PayPal sandbox.)
define("PAYPAL_URL", "www.paypal.com");

#
# CONFIRMATION EMAIL CONFIGURATION.
# 
# This is the email that will be sent to the buyer upon completing his or her transaction.
# {BUYERS_STORE_URL} will be replaced before sending with the correct URL for the 
# buyer to download the files.
#

define("BSDDS_CONFIRMATION_FROM_EMAIL",  "From: " . BSDDS_SUPPORT_EMAIL);
define("BSDDS_CONFIRMATION_SUBJECT_LINE", "Your digital order");
define("BSDDS_CONFIRMATION_EMAIL_MSG",
       "\nThanks for your purchase! You can retrieve your files here:" .
       "\n\n{BUYERS_STORE_URL}" .
       "\n\nIf you have any problems, questions or concerns, please don't hesitate to get in touch." .
       "\n\n\nThe Admin");

#
# DATABASE CONFIGURATION
# 
# Variables for the database. 
#

define("BSDDS_PURCHASE_TABLE", "bsdds_orders"); // table name
$sql_type = "1"; // 1 --> MySQL ; 2 --> MSSQL
$sql_host = "localhost"; // host name
$sql_name = ""; // database name
$sql_user = ""; // sql username
$sql_pass = ""; // sql password

#
# LOGGING CONFIGURATION
#

# Whether to log transactions to a file.
define("BSDDS_LOGGING", TRUE);

# Log file to use.
define("BSDDS_LOGFILE", APPLICATION_ROOT . '/log/log.txt');

#
# DEBUGGING
#

# Whether to enable extra output for debugging purposes.
define("DEBUG", FALSE);

?>